<template>
  <j-select-biz-component :width="1000" v-bind="configs" v-on="$listeners"/>
</template>

<script>
  import JSelectBizComponent from './JSelectBizComponent'

  export default {
    name: 'JSelectTerminal',
    components: { JSelectBizComponent },
    props: ['value'],
    data() {
      return {
        settings: {
          name: '门店',
          displayKey: 'terminalName',
          returnKeys: ['id', 'terminalCode'],
          listUrl: '/cnTerminalController/custFindTerminalList',
          queryParamCode: 'terminalName',
          queryParamText: '门店名称',
          columns: [
            { title: '门店编号', field: 'terminalCode', align: 'center', width: '50%', widthRight: '70%' },
            { title: '门店名称', field: 'terminalName', align: 'center', width: '50%', widthRight: '70%' }
          ]
        }
      }
    },
    computed: {
      configs() {
        return Object.assign({ value: this.value }, this.settings, this.$attrs)
      }
    }
  }
</script>

<style lang="less" scoped></style>
